package com.study.talk.netty.message.response;


import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("单聊信息响应")
public class MessageResponse extends TalkMessage {

    @Desc("用户id")
    private Integer userId;

    @Desc("用户名称")
    private String username;

    @Desc("用户昵称")
    private String nickname;

    @Desc("用户头像")
    private String avatar;

    @Desc("消息内容")
    private String content;

    @Desc("消息类型")
    private Integer messageType = 0;

    @Override
    public byte getType() {
        return MessageType.SEND_MESSAGE_RESPONSE;
    }

    public MessageResponse(Integer userId, String username, String nickname,String avatar, String content, Integer messageType) {
        this.userId = userId;
        this.username = username;
        this.nickname = nickname;
        this.avatar = avatar;
        this.content = content;
        this.messageType = messageType;
    }

    public MessageResponse() {
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }
}
